// @APIVersion 1.0.0
// @Title beego Test API
// @Description beego has a very cool tools to autogenerate documents for your API
// @Contact astaxie@gmail.com
// @TermsOfServiceUrl http://beego.me/
// @License Apache 2.0
// @LicenseUrl http://www.apache.org/licenses/LICENSE-2.0.html
package routers

import (
	"yjk/controllers"

	"gitee.com/lzqysoft/goadmin"
	"github.com/astaxie/beego"
)

func init() {
	goadmin.Run()
	ns := beego.NewNamespace("/ilive",

		beego.NSNamespace("/buyitem",
			beego.NSInclude(
				&controllers.BuyitemController{},
			),
		),

		beego.NSNamespace("/buy",
			beego.NSInclude(
				&controllers.BuyController{},
			),
		),

		beego.NSNamespace("/cust",
			beego.NSInclude(
				&controllers.CustController{},
			),
		),

		beego.NSNamespace("/ins",
			beego.NSInclude(
				&controllers.InsController{},
			),
		),

		beego.NSNamespace("/order",
			beego.NSInclude(
				&controllers.OrderController{},
			),
		),

		beego.NSNamespace("/outs",
			beego.NSInclude(
				&controllers.OutsController{},
			),
		),

		beego.NSNamespace("/partner",
			beego.NSInclude(
				&controllers.PartnerController{},
			),
		),

		beego.NSNamespace("/pay",
			beego.NSInclude(
				&controllers.PayController{},
			),
		),

		beego.NSNamespace("/preorder",
			beego.NSInclude(
				&controllers.PreorderController{},
			),
		),

		beego.NSNamespace("/presales",
			beego.NSInclude(
				&controllers.PresalesController{},
			),
		),

		beego.NSNamespace("/prod",
			beego.NSInclude(
				&controllers.ProdController{},
			),
		),
		beego.NSNamespace("/prodtype",
			beego.NSInclude(
				&controllers.ProdTypeController{},
			),
		),

		beego.NSNamespace("/receiv",
			beego.NSInclude(
				&controllers.ReceivController{},
			),
		),

		beego.NSNamespace("/sales",
			beego.NSInclude(
				&controllers.SalesController{},
			),
		),

		beego.NSNamespace("/serv",
			beego.NSInclude(
				&controllers.ServController{},
			),
		),

		beego.NSNamespace("/service",
			beego.NSInclude(
				&controllers.ServiceController{},
			),
		),

		beego.NSNamespace("/sin",
			beego.NSInclude(
				&controllers.SinController{},
			),
		),

		beego.NSNamespace("/sout",
			beego.NSInclude(
				&controllers.SoutController{},
			),
		),

		beego.NSNamespace("/stock",
			beego.NSInclude(
				&controllers.StockController{},
			),
		),
		beego.NSNamespace("/temp",
			beego.NSInclude(
				&controllers.TempController{},
			),
		),
		beego.NSNamespace("/tempitem",
			beego.NSInclude(
				&controllers.TempitemController{},
			),
		),
	)
	beego.AddNamespace(ns)
}
